package day03.io;

import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;

/**
 * @ClassName PWDemo
 * @Description TODO
 * @Author xinghaiyang
 * @Date 2023/3/20 16:23
 * @Version 1.0
 *
 * 缓冲字符流:
 *
 **/
public class PWDemo {
    public static void main(String[] args) throws FileNotFoundException, UnsupportedEncodingException {
        //向文本中写出文本数据
        PrintWriter pw = new PrintWriter("./pw.txt","UTF-8");
        pw.println("新的世界");
        pw.println("新的开始");
        System.out.println("写出完毕");
        pw.close();
    }
}
